package 流程控制.循环结构;

public class 九九乘法表 {
    public static void main(String[] args) {
        for (int i = 1; i <= 9; i++) {
            for (int y = 1; y <= i; y++) {//正向九九乘法表
//          for (int y = 1; y <= 10-i; y++) {//反向九九乘法表
                System.out.print(i + "*" + y + "=" + i * y + "  ");
            }
            System.out.println();
        }
        /**
         * 增强for循环
         */
        int[] a = {1, 1, 2, 3, 4, 5};
        for (int x:a){
            System.out.println(x);
        }
    }

}

